home *** CD-ROM | disk | FTP | other *** search
- # translated from the example on pages129-131 of the RenderMan Companion
- #
- proc SolidCylinder {radius zMin zMax} {
-
- SolidBegin primitive
- Cylinder $radius $zMin $zMax 360
- Disk $zMax $radius 360
- Disk $zMin $radius 360
- SolidEnd
- }
-
- proc SolidCone {height radius} {
-
- SolidBegin primitive
- Cone $height $radius 360
- Disk 0 $radius 360
- SolidEnd
- }
-
-
- proc BowlingBallPlug {} {
-
- SolidBegin union
- SolidCylinder .03 -.3 -.15
- Translate 0 0 -.315
- SolidCone .075 .045
- SolidEnd
- }
-
-
- set plugColor {.1 .1 .1}
-
- startShape BowlingBall
- SolidBegin difference
- SolidBegin primitive
- Sphere .3 -.3 .3 360
- SolidEnd
- SolidBegin union
- Color $plugColor
- Rotate 170 1 0 0
- BowlingBallPlug
- Rotate 30 0 1 0
- BowlingBallPlug
- Rotate 30 1 0 0
- BowlingBallPlug
- SolidEnd
- SolidEnd
- endShape
-
-